load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
load("@io_bazel_rules_go//extras:bindata.bzl", "bindata")

bindata(
    name = "data",
    srcs = glob(["data/*"]),
    package = "bindata",
    strip_external = True,
)

go_library(
    name = "go_default_library",
    srcs = [":data"],
    importpath = "github.com/bazelbuild/rules_go/examples/bindata",
)

go_test(
    name = "go_default_test",
    size = "small",
    srcs = ["bindata_test.go"],
    embed = [":go_default_library"],
)
